package com.app.buss;

import android.app.Application;
import android.content.Context;

import com.facebook.FacebookSdk;
import com.facebook.appevents.AppEventsLogger;

import io.branch.referral.Branch;

public class MApplication extends Application {

    public static Context mContext;
    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        // Branch logging for debugging
        Branch.enableLogging();
        FacebookSdk.sdkInitialize(getApplicationContext());
        AppEventsLogger.activateApp(this);
        // Branch object initialization
        Branch.getAutoInstance(this);
    }

    public static MApplication get() {
        return (MApplication) mContext.getApplicationContext();
    }

}
